import request from '@/utils/request'

// 查询汽车信息列表
export function listGoodscar(query) {
  return request({
    url: '/goodscar/goodscar/list',
    method: 'get',
    params: query
  })
}

// 查询汽车信息详细
export function getGoodscar(carId) {
  return request({
    url: '/goodscar/goodscar/' + carId,
    method: 'get'
  })
}

// 新增汽车信息
export function addGoodscar(data) {
  return request({
    url: '/goodscar/goodscar',
    method: 'post',
    data: data
  })
}

// 修改汽车信息
export function updateGoodscar(data) {
  return request({
    url: '/goodscar/goodscar',
    method: 'put',
    data: data
  })
}

// 删除汽车信息
export function delGoodscar(carId) {
  return request({
    url: '/goodscar/goodscar/' + carId,
    method: 'delete'
  })
}
